<?php

use Illuminate\Support\Facades\Route;
use App\Http\Controllers\TeacherController;

Route::get('/', function () {
    return view('welcome');
});

Route::get('/teacher/clazzes', [TeacherController::class, 'listClass'])->name('teacher.clazzes');
Route::get('/teacher/students/{clazzId}/{sort?}/{filter?}', [TeacherController::class, 'listStudent'])->name('teacher.students')->where('sort', 'n|s')->where('filter', 'c|p|a');
Route::post('/teacher/feedback', [TeacherController::class, 'feedback'])->name('teacher.feedback');
Route::get('/teacher/feedback', [TeacherController::class, 'getFeedback'])->name('teacher.get_feedback');